package com.yc.common.enums;

public enum OperationType {
    OTHER(0, "其它"),
    INSERT(1, "新增"),
    UPDATE(2, "修改"),
    DELETE(3, "删除"),
    QUERY(4, "查询"),
    LOGIN(5, "登录"),
    LOGOUT(6, "登出"),
    ERROR(7, "错误"),
    TEST(8, "测试");

    private final int code;
    private final String desc;

    OperationType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}